package com.songlanyun.modules.marketing.groupbuy.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.marketing.groupbuy.entity.GroupBuyTeamMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.marketing.groupbuy.model.vo.GroupBuyOrderSlimVO;
import com.songlanyun.modules.marketing.groupbuy.model.vo.GroupBuyTeamMemberSlimVO;
import com.songlanyun.modules.marketing.groupbuy.model.vo.TeamMemberUserInfoVO;
import com.songlanyun.modules.marketing.groupbuy.model.vo.TeamOrderPageReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 拼团活动的成员
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-27 14:03:39
 */
@Mapper
public interface GroupBuyTeamMemberDao extends BaseMapper<GroupBuyTeamMember> {
    IPage<GroupBuyOrderSlimVO> queryMyJoinTeamOrderPage(IPage<GroupBuyOrderSlimVO> page, @Param("paramsMapToReq") TeamOrderPageReq paramsMapToReq);
    List<TeamMemberUserInfoVO> getTeamMembers(@Param("teamId") Long teamId);

    List<GroupBuyTeamMemberSlimVO> queryMembers(@Param("paramsMapToReq") TeamOrderPageReq paramsMapToReq);
}
